package com.util;

import com.pojo.Response;

public class ResponseUtil {

    /**
     * 成功响应
     */
      public static String SUCCESS(String message, Object data ){
              return JsonUtil.toJson(new Response(200,message,data));
      }

    /**
     * 失败响应
     */
    public static String FAIL(String message,Object data){
          return JsonUtil.toJson(new Response(500,message,data));
    }
}
